package site.icesky.springboot.feign.config;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @ClassName: FeignConfig <br>
 * @Description: feign接口 <br>
 * @Package: site.icesky.springboot.feign.config <br>
 * @author: suitianmou <br>
 * @Date: 2020/6/5-15:18 <br>
 * @version: 1.0 <br>
 * @see <br>
 * @since (从产品的哪一个版本此类被添加进来 ( 可选))<br>
 * 修改历史: <br>
 * 修改时间             修改人           版本变更           修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */
@Component
@FeignClient(name = "FeignConfigService", url ="${feign.url.prefix}", configuration = FeignConfig.class)
public interface FeignConfigService {

    @RequestMapping( value = "${feign.url.send}", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
    JSONObject feigSend(@RequestBody JSONObject map);
}